﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DataAccess.ObjectOne;
using Class_Entity.ObjectOne;
using System.Data;
namespace BussinessObject.ObjectOne
{
    public class B_Service
    {       
        D_Service ex = new D_Service();
        C_Service fx = new C_Service();
        public DataTable b_service()
        {
            return ex.LoadService();
     
        }
        public DataTable ServiceDetail(int val)
        {
            return ex.ServiceDetail(val);
        }
        public C_Service ServiceName(int val)
        {
            DataTable tb = new DataTable();
           tb = ex.ServiceName(val);
            foreach (DataRow dr in tb.Rows)
            {
                fx.SERVICES_NAME = dr["SERVICE_NAME"].ToString();
                fx.DESCRIPTION = dr["DESCRIPTION"].ToString();
                
            }
            return fx;
        }
    }
}
